import {
	StackNavigator,
	TabNavigator,
} from "react-navigation";

import IndexHome from "./containers/IndexHome";
import ShoppingIndex from "./containers/ShoppingIndex";
import PersonalPage from "./containers/PersonalPage";
import Shopping from "./shopping/Shopping";

const TabContainer = TabNavigator({
	//首页;
	IndexHome: {
		screen: IndexHome,
	},
	//商城首页;
	ShoppingIndex: {
		screen: ShoppingIndex,
		navigationOptions: {
			tabBarLabel: "商城",
		},
	},
	//个人中心;
	PersonalPage: {
		screen: PersonalPage,
	},

},{
	tabBarPosition: "bottom",
	swipeEnabled: false,
	animationEnabled: false,
	tabBarOptions: {
		activeTintColor: "#3CFF61",
		inactiveTintColor: "#525252",
		scrollEnabled: false,
		showIcon: true,
		indicatorStyle: {
        	height: 0,
      	},
		style: {
			paddingTop: 5,
			paddingBottom: 2,
			backgroundColor: "#fff",
		},
		labelStyle: {
			fontSize: 14,
			marginTop: 3,
		},
	}
})

export default StackNavigator({
	Home: {
		screen: TabContainer,
	}
})




